package ztime

import (
	"log"
	"time"
)

func ExecTime(start time.Time, name string) {
	elapsed := time.Since(start)
	log.Printf("%s took %s", name, elapsed)
}

func ExecMillisecond(start time.Time, name string) {
	elapsed := time.Since(start)
	log.Printf("%s took %d ms", name, elapsed.Milliseconds())
}

func ExecNanosecond(start time.Time, name string) {
	elapsed := time.Since(start)
	log.Printf("%s took %d ns", name, elapsed.Nanoseconds())
}
